import { upload, uploadCover, post } from '@/server/http';
// 上传视频
export const uploadVideoAPI = (data) => upload('user/uploadFile', data);

// 上传封面
export const uploadCoverAPI = (data) => uploadCover('user/uploadCover', data);


// 发布视频
export const publishVideoAPI = (userId, data) => post(`user/${userId}/publishVideo`, data);